package com.icangya.service;

import com.icangya.domain.FbMissionAward;
import com.icangya.domain.FbTurntableRecord;

import java.util.List;

public interface IMissionService {  //任务   大转盘

    /**
     * 获取具体场次的奖励信息
     * @return
     */
    List<FbMissionAward> getMissionAwardByStatus(int site);

   /**
    * 获取所有的奖励信息
    * @return
    */
   List<FbMissionAward> getFbMissionAward();

    /**
     * 获取可领取的奖励
     * @return
     */
    List<FbMissionAward> getMissionAwardStatus(int site);
    /**
     * 获取单条奖励信息
     * @return
     */
    FbMissionAward getMissionAward(long awardId);

    /**
     * 修改奖励领取的状态
     * @param fbMissionAward
     * @return
     */
    Boolean updateMissionAward(FbMissionAward fbMissionAward);




    FbTurntableRecord saveFbTurntableRecord(FbTurntableRecord turntableRecord);

    boolean updateTurntableRecord(FbTurntableRecord turntableRecord);

 //查询用户所有的转盘记录
 List<FbTurntableRecord>  getTurntableRecordByOpenId(String openId, int startPage);

    /**
     * 查询用户使用转盘的记录
     * @return
     */
    List<FbTurntableRecord> getTurntableRecordByOpenId(String openId);

}
